/*
** my_revstr.c for my_revstr in /home/gueux_g/piscine/Jour_06
**
** Made by gregory gueux
** Login   <gueux_g@epitech.net>
**
** Started on  Mon Oct  8 10:22:00 2012 gregory gueux
** Last update Thu Oct 11 20:36:55 2012 gregory gueux
*/

char	*my_revstr(char *str)
{
  int  	begin;
  char	c;
  int  	end;

  begin = 0;
  end = 0;
  while (str[end])
    end++;
  end  = end - 1;
  while (begin <= end)
    {
      c = str[end];
      str[end] = str[begin];
      str[begin] = c;
      begin = begin + 1;
      end = end - 1;
    }
  return (str);
}
